package com.ruoyi.store.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.store.mapper.StoOrdersMapper;
import com.ruoyi.store.domain.StoOrders;
import com.ruoyi.store.service.IStoOrdersService;

/**
 * 订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-08
 */
@Service
public class StoOrdersServiceImpl implements IStoOrdersService 
{
    @Autowired
    private StoOrdersMapper stoOrdersMapper;

    /**
     * 查询订单
     * 
     * @param id 订单主键
     * @return 订单
     */
    @Override
    public StoOrders selectStoOrdersById(Long id)
    {
        return stoOrdersMapper.selectStoOrdersById(id);
    }

    /**
     * 查询订单列表
     * 
     * @param stoOrders 订单
     * @return 订单
     */
    @Override
    public List<StoOrders> selectStoOrdersList(StoOrders stoOrders)
    {
        return stoOrdersMapper.selectStoOrdersList(stoOrders);
    }

    /**
     * 新增订单
     * 
     * @param stoOrders 订单
     * @return 结果
     */
    @Override
    public int insertStoOrders(StoOrders stoOrders)
    {
        return stoOrdersMapper.insertStoOrders(stoOrders);
    }

    /**
     * 修改订单
     * 
     * @param stoOrders 订单
     * @return 结果
     */
    @Override
    public int updateStoOrders(StoOrders stoOrders)
    {
        return stoOrdersMapper.updateStoOrders(stoOrders);
    }

    /**
     * 批量删除订单
     * 
     * @param ids 需要删除的订单主键
     * @return 结果
     */
    @Override
    public int deleteStoOrdersByIds(Long[] ids)
    {
        return stoOrdersMapper.deleteStoOrdersByIds(ids);
    }

    /**
     * 删除订单信息
     * 
     * @param id 订单主键
     * @return 结果
     */
    @Override
    public int deleteStoOrdersById(Long id)
    {
        return stoOrdersMapper.deleteStoOrdersById(id);
    }
}
